package com.example.chat.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.example.chat.domain.dto.LoginFormDTO;
import com.example.chat.domain.dto.RegisterFormDTO;
import com.example.chat.domain.dto.UserDTO;
import com.example.chat.domain.entity.User;
import com.example.chat.result.Result;
import org.springframework.web.multipart.MultipartFile;


public interface UserService extends IService<User> {
    Result register(RegisterFormDTO registerFormDTO);

    Result login(LoginFormDTO loginForm);

    Result upload(MultipartFile file);

    Result getMyself();

    Result updateSelf(UserDTO userDTO);

    Result updatePwd(String oldPassword, String newPassword, String confirmPassword);

    Result getUserTypeById(Long id);

    Result guestLogin(String userName);
}
